package com.bluesky.example.reflect;

import java.lang.reflect.Method;
import java.lang.reflect.Type;

import org.hibernate.Hibernate;

public class Foo<K,V> {
	
	public V play(K k,String s){
		return null;
	}
	public String s(){
		return null;
	};
	public static void main(String[] args) {
		Method[] methods = Foo.class.getMethods();
		
		for(Method m : methods){
			Class[] paramTypes = m.getParameterTypes();
			System.out.println(paramTypes);
			Type[] types = m.getGenericParameterTypes();
			System.out.println(types);
			Hibernate.initialize(new Foo().s());
		}
	}

}
